package gms.simulation.timeline;

/**
 * Created by IntelliJ IDEA.
 * User: Anton Dunaev
 * Date: 19.09.2007
 * Time: 13:05:36
 */
class TimeMark
{
    private double time_mark;
    private BlockGroup end_group;
    private BlockGroup start_group;

    public TimeMark( double time_mark )
    {
        this.time_mark = time_mark;
    }

    public void setStartGroup( BlockGroup start_group)
    {
        this.start_group = start_group;
    }

    public void setEndGroup( BlockGroup end_group)
    {
        this.end_group = end_group;
    }

    public BlockGroup getEnd_group()
    {
        return end_group;
    }

    public BlockGroup getStart_group()
    {
        return start_group;
    }

    public void setMark( double time_mark )
    {
        this.time_mark = time_mark;
        if( end_group != null )
            end_group.moveEndTimeMarkEvent( );
        if( start_group != null )
            start_group.moveStartTimeMarkEvent( );
    }

    

    public double getTimeMark()
    {
        return this.time_mark;
    }

}